import React, { Component } from 'react'
import { Modal, } from 'antd';

export default class CreateForm extends Component {
    render() {
        return (
            <Modal
                destroyOnClose
                title="添加"
                visible={this.props.createModalVisible}
                onCancel={() => this.props.onCancel()}
                footer={null}
            >
                {this.props.children}
            </Modal>
        )
    }
}
